package cn.java78.springboot.myschool.ctrl;

import cn.java78.springboot.myschool.pojo.AjaxResult;
import cn.java78.springboot.myschool.service.GradeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author oldliu
 * @since 1.0
 */
@RestController
@RequestMapping("grade")
public class GradeController {
    @Resource
    private GradeService gradeService;

    @GetMapping("find")
    public AjaxResult find(){
        return AjaxResult.success(gradeService.findALL());
    }
}
